package com.veepeak.server.repository;

import com.veepeak.server.common.BaseRepository;
import com.veepeak.server.domain.Obd;
import com.veepeak.server.domain.Vehicle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ObdRepository extends BaseRepository<Obd,String> {
    List<Obd> findBySerialsNumberIn(List<String> serialNumberList);
    Page<Obd> findBySerialsNumberIsLike(Pageable pageable, String serialNumber);
    Page<Obd> findByStatus(Pageable pageable, int status);
    Obd getBySerialsNumberAndProductModel(String serialsNumber,String ProductModel);
}
